package com.sxj.corejava.entity;

import com.sxj.corejava.code18_工厂模式.ObjectFactory;

import java.util.Date;

public class Address {

    private String province;
    private String city;
    private Date date = (Date) ObjectFactory.getObject("date");

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
}
